package com.jh.complicate.rpc.v1.server;

import com.jh.complicate.rpc.v1.api.IUserService;

/**
 * @author Administrator
 * @projectName newforward
 * @title ServerApp.java
 * @package com.jh.complicate.rpc.v1.server
 * @description 服务端App
 * @date 2019/6/11 23:15
 */
public class ServerApp {
    public static void main(String[] args) {
        // 没有RPC框架，通过new模拟进行发布
        IUserService userService = new UserServiceImpl();

        // 发布服务
        RPCProxyServer proxyServer = new RPCProxyServer();
        proxyServer.publisher(userService, 8080);

    }
}
